package com.example.exercise.sys.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.exercise.sys.vo.SysRoleVO;
import com.example.exercise.sys.dao.entity.SysRoleEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* CRM角色表
*/
public interface SysRoleDAO {

    List<SysRoleEntity> findByWhere(Page<?> page, @Param("param") SysRoleVO sysRoleVO);

    SysRoleEntity findByKey(@Param("param") SysRoleVO sysRoleVO);

    int insert(@Param("param") SysRoleEntity sysRoleEntity);

    int updateByKey(@Param("param") SysRoleEntity sysRoleEntity);

    int deleteByKey(@Param("param") SysRoleVO sysRoleVO);

}